<%--
Created by IntelliJ IDEA.
User: 14533
Date: 2021/10/30
Time: 12:53
To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<link rel="stylesheet" href="css/amazeui.min.css">
		<link rel="stylesheet" href="css/admin.css">
		<style>
			.admin-main{
				padding-top: 0px;
			}
		</style>
	</head>
	<body>
		<div class="am-cf admin-main">
			<div class="admin-content">
				<div class="admin-content-body">
					<div class="am-g">
						<form class="am-form am-form-horizontal" onsubmit="return checkPwd()" action="updatePwd" method="post" target="_parent" style="padding-top:30px;" data-am-validator>
							<input type="hidden" name="eid" value="${emp.eid}">
							<div class="am-form-group">
								<label for="user-name" class="am-u-sm-3 am-form-label">
									新密码 </label>
								<div class="am-u-sm-9">
									<input type="password" id="epass" required placeholder="请输入新密码" name="epass"> <small>输入新密码。</small>
								</div>
							</div>
							<div class="am-form-group">
								<label for="user-name" class="am-u-sm-3 am-form-label">
									重复密码</label>
								<div class="am-u-sm-9">
									<input type="password" id="repass" required placeholder="请输入重复密码" name="repass" data-equal-to="#doc-vld-pwd-1"
									 required> <small id="tip"> 输入重复密码。</small>
								</div>
							</div>
							<div class="am-form-group">
								<div class="am-u-sm-9 am-u-sm-push-3">
									<input type="submit" id="btns" class="am-btn am-btn-success" value="修改密码" />
								</div>
							</div>
						</form>
					</div>
				</div>
			</div>
		</div>
		<script type="text/javascript" src="js/jquery-1.11.3.min.js">
		</script>
		<script type="text/javascript" src="myplugs/js/plugs.js">
		</script>
		<script>

			function checkPwd() {
				var epass2 = $("#epass").val();
				var repass2 = $("#repass").val();

				if (repass2 != epass2) {
					${"#tip"}.text("两次输入密码不一致");
					return false;
				} else {
					return true;
				}
			}

		</script>
	</body>
</html>
